package com.nhncorp.pleiades.client;

public class LockEventData {

  private String hostname;
  private String lockId;
  private boolean directory;
  private long generationNumber;
  private int eventType;
  
  public LockEventData(){
    hostname = "";
    lockId = "";
    directory = false;
    generationNumber = 0;
  }

  public long getGenerationNumber() {
    return this.generationNumber;
  }

  public void setGenerationNumber(long generationNumber) {
    this.generationNumber = generationNumber;
  }

  public String getHostname() {
    return hostname;
  }

  public void setHostname(String hostname) {
    this.hostname = hostname;
  }

  public String getLockId() {
    return this.lockId;
  }

  public void setLockId(String lockId) {
    this.lockId = lockId;
  }
  
  public boolean isDirectory() {
    return this.directory;
  }
  
  public void setDirectory(boolean isDir) {
    this.directory = isDir;
  }

  public int getEventType() {
    return this.eventType;
  }

  public void setEventType(int eventType) {
    this.eventType = eventType;
  }
  
  public String toString() {
    return (this.hostname + "," + this.lockId + "," + this.eventType + "," + this.generationNumber);
  }
  
}
